home *** CD-ROM | disk | FTP | other *** search
- @echo off
- set adminPassword=remoteic
- if not "%1"=="" set adminPassword=%1
- set installLog=C:\MSDEremoteIC.log
- set realOs=NT
- set language=English
- ::set language=Deutsch
- if not exist "%~pd0.\Data\Setup.exe" (echo Setup.exe could not be found in %~pd0Data) && (pause) && (goto :EOF)
- if not exist "%~pd0.\Data\setup.ini" (echo setup.ini could not be found in %~pd0Data) && (pause) && (goto :EOF)
- if not exist "%~pd0.\Data\remoteIC.exe" (echo remoteIC.exe could not be found in %~pd0Data) && (pause) && (goto :EOF)
- if not exist "%windir%\system32\findstr.exe" goto NOFINDSTR
- :: get os version
- ver | findstr "2000" >NUL
- if not errorlevel 1 set realOs=2000
- ver | findstr "XP" >NUL
- if not errorlevel 1 set realOs=XP
- :NOFINDSTR
- echo *********************************************************************
- echo * *
- echo * Microsoft SQL Server Desktop Engine 2000 (MSDE) %language% *
- echo * *
- echo *********************************************************************
- echo.
- echo.
- if not "%realOs%"=="NT" goto CONTINUEINSTALL
- if not "%adminPassword%"=="remoteic" goto CONTINUEINSTALL
- if "%language%"=="English" echo Syntax: %0 [password]
- if "%language%"=="English" echo.
- if "%language%"=="English" echo [password] Password of database administrator 'sa'
- if "%language%"=="English" echo Default password: '%adminPassword%'
- if "%language%"=="Deutsch" echo Syntax: %0 [kennwort]
- if "%language%"=="Deutsch" echo.
- if "%language%"=="Deutsch" echo [kennwort] Kennwort des Datenbankadministrators 'sa'
- if "%language%"=="Deutsch" echo Standard-Kennwort: '%adminPassword%'
- echo.
- echo.
- :CONTINUEINSTALL
- if "%language%"=="English" echo Hereby you accept the Microsoft license agreement in the file license.txt
- if "%language%"=="English" echo Do you want to start the installation of MSDE?
- if "%language%"=="Deutsch" echo Hiermit akzeptieren Sie die Microsoft Lizenzbedingungen in der Datei license.txt
- if "%language%"=="Deutsch" echo Moechten Sie die Installation von MSDE starten?
- echo.
- if "%language%"=="English" echo Press any key to continue or (Ctrl) (Break) to cancel.
- if "%language%"=="Deutsch" echo Druecken Sie eine beliebige Taste um fortzusetzen
- if "%language%"=="Deutsch" echo oder (Ctrl) (Break) um abzubrechen.
- pause>nul
- if not "%realOs%"=="NT" goto PASSWORD
- goto STARTINSTALL
- :PASSWORD
- cls
- echo *********************************************************************
- echo * *
- echo * Microsoft SQL Server Desktop Engine 2000 (MSDE) %language% *
- echo * *
- echo *********************************************************************
- echo.
- echo.
- if "%language%"=="English" echo Please enter a strong password for the database administrator 'sa'.
- if "%language%"=="Deutsch" echo Bitte geben Sie ein Kennwort fuer den Datenbank Administratior 'sa' ein.
- echo.
- if "%language%"=="English" echo Password:
- if "%language%"=="Deutsch" echo Kennwort:
- set adminPassword=
- set /P adminPassword=
- if "%adminPassword%"=="" goto PASSWORD
-
- :STARTINSTALL
- cls
- echo *********************************************************************
- echo * *
- echo * Microsoft SQL Server Desktop Engine 2000 (MSDE) %language% *
- echo * *
- echo *********************************************************************
- echo.
- echo.
- if "%language%"=="English" echo The password of the database admin 'sa' will be set to '%adminPassword%'.
- if "%language%"=="English" echo Later this password will be used to create the remoteIC database.
- if "%language%"=="Deutsch" echo Das Kennwort des DB Administrators 'sa' wird auf '%adminPassword%' gesetzt'.
- if "%language%"=="Deutsch" echo Das Kennwort wird spaeter fuer die Erstellung der remoteIC Datenbank benoetigt.
- echo.
- pause
- cls
- echo *********************************************************************
- echo * *
- echo * Microsoft SQL Server Desktop Engine 2000 (MSDE) %language% *
- echo * *
- echo *********************************************************************
- echo.
- echo.
- if "%language%"=="English" echo Unattended install for MSDE is starting...
- if "%language%"=="Deutsch" echo Die automatische Installation wird nun gestartet...
- echo.
- if "%language%"=="English" echo Installation will be logged to %installLog%.
- if "%language%"=="Deutsch" echo Die Installation wird im Verzeichnis %installLog% protokolliert.
- echo.
- start "MSDE Installation" "%~pd0.\Data\Setup.exe" /settings "%~pd0.\Data\setup.ini" SAPWD="%adminPassword%" /L*v "%installLog%"
- if "%language%"=="English" echo Waiting for MSDE Setup to finish (approximately 5-10 minutes)...
- if "%language%"=="Deutsch" echo Warten auf Installationensende (Dauer ca. 5-10 Minuten)...
- echo.
- "%~pd0.\Data\remoteIC.exe" waitForReg HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E09B48B5-E141-427A-AB0C-D3605127224A}" "DisplayName" "Microsoft SQL Server Desktop Engine (REMOTEIC)" /t:600
- if not "%errorlevel%"=="0" (echo Could not install MSDE) && (notepad "%installLog%") && (pause) && (goto :EOF)
- if "%language%"=="English" echo MSDE successfully installed.
- if "%language%"=="Deutsch" echo MSDE erfolgreich installiert.
- echo.
- pause
- echo.
- if "%language%"=="English" echo Try to start 'MSSQL$REMOTEIC' service...
- if "%language%"=="Deutsch" echo Starte 'MSSQL$REMOTEIC' Dienst...
- net start MSSQL$REMOTEIC
- if not "%errorlevel%"=="0" (echo Could not start service 'MSSQL$REMOTEIC') && (notepad "%installLog%") && (pause) && (goto :EOF)
- if "%language%"=="English" echo Now, install and start rICadmin and create the remoteIC database using the
- if "%language%"=="English" echo following database server name: %COMPUTERNAME%\REMOTEIC
- if "%language%"=="Deutsch" echo Installieren Sie nun rICadmin und erstellen Sie die remoteIC Datenbank
- if "%language%"=="Deutsch" echo mit folgendem Datenbank Server: %COMPUTERNAME%\REMOTEIC
- echo.
- pause
-
-
-